.class Lcom/hyphenate/chat/EMClient$7;
.super Lcom/hyphenate/chat/adapter/EMANetCallback;


# instance fields
.field final synthetic this$0:Lcom/hyphenate/chat/EMClient;


# direct methods
.method constructor <init>(Lcom/hyphenate/chat/EMClient;)V
    .locals 0

    iput-object p1, p0, Lcom/hyphenate/chat/EMClient$7;->this$0:Lcom/hyphenate/chat/EMClient;

    invoke-direct {p0}, Lcom/hyphenate/chat/adapter/EMANetCallback;-><init>()V

    return-void
.end method


# virtual methods
.method public getNetState()I
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMClient$7;->this$0:Lcom/hyphenate/chat/EMClient;

    # getter for: Lcom/hyphenate/chat/EMClient;->mContext:Landroid/content/Context;
    invoke-static {v0}, Lcom/hyphenate/chat/EMClient;->access$200(Lcom/hyphenate/chat/EMClient;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/hyphenate/util/NetUtils;->hasNetwork(Landroid/content/Context;)Z

    iget-object v0, p0, Lcom/hyphenate/chat/EMClient$7;->this$0:Lcom/hyphenate/chat/EMClient;

    # getter for: Lcom/hyphenate/chat/EMClient;->mContext:Landroid/content/Context;
    invoke-static {v0}, Lcom/hyphenate/chat/EMClient;->access$200(Lcom/hyphenate/chat/EMClient;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/hyphenate/util/NetUtils;->hasDataConnection(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    sget-object v0, Lcom/hyphenate/chat/adapter/EMAChatClient$EMANetwork;->NETWORK_NONE:Lcom/hyphenate/chat/adapter/EMAChatClient$EMANetwork;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAChatClient$EMANetwork;->ordinal()I

    move-result v0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMClient$7;->this$0:Lcom/hyphenate/chat/EMClient;

    # getter for: Lcom/hyphenate/chat/EMClient;->mContext:Landroid/content/Context;
    invoke-static {v0}, Lcom/hyphenate/chat/EMClient;->access$200(Lcom/hyphenate/chat/EMClient;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/hyphenate/util/NetUtils;->isWifiConnection(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_1

    sget-object v0, Lcom/hyphenate/chat/adapter/EMAChatClient$EMANetwork;->NETWORK_WIFI:Lcom/hyphenate/chat/adapter/EMAChatClient$EMANetwork;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAChatClient$EMANetwork;->ordinal()I

    move-result v0

    goto :goto_0

    :cond_1
    sget-object v0, Lcom/hyphenate/chat/adapter/EMAChatClient$EMANetwork;->NETWORK_MOBILE:Lcom/hyphenate/chat/adapter/EMAChatClient$EMANetwork;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAChatClient$EMANetwork;->ordinal()I

    move-result v0

    goto :goto_0
.end method
